﻿namespace LayoutGridview.Models
{
    using LayoutGridview.Helpers;
    using Windows.UI;
    using Windows.UI.Xaml.Media;

    public class SimpleData : BindableBase
    {
        Color m_Color = default(Color);
        public Color Color
        {
            get { return this.m_Color; }
            set
            {
                this.SetProperty(ref this.m_Color, value);
                this.Brush = new SolidColorBrush(value);
                this.Text = value.ToString();
            }
        }

        string m_Text = default(string);
        public string Text { get { return this.m_Text; } private set { this.SetProperty(ref this.m_Text, value); } }

        SolidColorBrush m_Brush = default(SolidColorBrush);
        public SolidColorBrush Brush { get { return this.m_Brush; } private set { this.SetProperty(ref this.m_Brush, value); } }

        public int Index { get; set; }
        public int ColSpan { get; set; }
        public int RowSpan { get; set; }
        public bool Hero { get; set; }
    }
}
